﻿using System;

namespace YueRu.Common
{
    public static class AppsettingHelper
    {
        public static string NotifyUrl =
            System.Configuration.ConfigurationManager.AppSettings["NotifyUrl"];

        public static string RefoundNotifyUrl =
            System.Configuration.ConfigurationManager.AppSettings["RefoundNotifyUrl"];

        public static string ErrorNotifyUrl =
            System.Configuration.ConfigurationManager.AppSettings["ErrorNotifyUrl"];

        public static string GetAppSettingValue(string key)
        {
            if (string.IsNullOrEmpty(key))
                throw new ArgumentNullException("AppSettingKey");
            return System.Configuration.ConfigurationManager.AppSettings[key] ?? string.Empty;
        }
    }
}
